package Day14;

import java.util.List;
import java.util.Map;
import java.util.Set;

public class Demo02 {
    public static void main(String[] args) {
        //JDK9新特性
        /*List<String> list = List.of("锄禾日当午", "汗滴禾下土");//不可更改
        for (String a:list) {
            System.out.println(a);
        }*/

        /*Set<String> set = Set.of("一二三四五", "上山打老虎");//不可更改  Set.of  静态修饰Static
        for (String b:set) {
            System.out.println(b);
        }*/

        Map<String, String> map = Map.of("hh1", "何周华笨蛋", "hh2", "刘焮大笨蛋");//静态修饰  不可更改
        Set<String> set = map.keySet();
        for (String key:set) {
            System.out.println(key + "->" + map.get(key));
        }

    }
}
